<template>
	<!-- 管理审核 -->
	<view class="review">
		<view class="review-main">
			<view class="reviewMain-content" @tap="inrecharge(0)">
				<view class="reviewMainImg">
					<image src="https://huishou.68699.cn/addons/wjyk_recycle/public/static/index/manage-recharge.png"
						mode=""></image>
				</view>
				<view class="recharge">充值</view>
				<view class="icon iconfont icon-xiangyoujiantou"></view>
			</view>
			<view class="reviewMain-content" @tap="inrecharge(1)">
				<view class="reviewMainImg">
					<image src="https://huishou.68699.cn/addons/wjyk_recycle/public/static/index/thaw.png" mode="">
					</image>
				</view>
				<view class="recharge">冻结与解冻</view>
				<view class="icon iconfont icon-xiangyoujiantou"></view>
			</view>
			<view class="reviewMain-content" @tap="inrecharge(2)">
				<view class="reviewMainImg">
					<image src="https://huishou.68699.cn/addons/wjyk_recycle/public/static/index/delete.png" mode="">
					</image>
				</view>
				<view class="recharge">删除</view>
				<view class="icon iconfont icon-xiangyoujiantou"></view>
			</view>
			<view class="reviewMain-content" @tap="inrecharge(3)">
				<view class="reviewMainImg">
					<image src="https://huishou.68699.cn/addons/wjyk_recycle/public/static/index/check-apply.png"
						mode=""></image>
				</view>
				<view class="recharge recharge-end">审核申请</view>
				<view class="icon iconfont icon-xiangyoujiantou"></view>
			</view>
		</view>
		<reviewPopup v-if="isPopup" :isPopup="isPopup" :popValueIndex="popValueIndex" @changeData="hidePopup"></reviewPopup>
		<tabBar currentPage="review"></tabBar>
	</view>
</template>

<script>
	import tabBar from "@/component/count/tabbar.vue"
	import reviewPopup from "@/component/popupReview.vue"
	export default {
		components: {
			tabBar,reviewPopup
		},
		data() {
			return {
				isPopup:false,//是否显示弹框
				popValueIndex:"",//传递给子组件的值
			};
		},
		methods: {
			inrecharge(e) { //点击充值
				// console.log(e)
				this.popValueIndex = e
				// console.log(this.popValueIndex)
				this.isPopup = true
			},
			hidePopup(e) { //关闭遮罩，子组件传递数值
				// console.log(e)
				// 子组件传递false过来，关闭弹框
				this.isPopup = e
			},
		}
	}
</script>

<style lang="scss" scoped>
	.review {
		padding: 20rpx;

		.review-main {
			background: #fff;
			padding: 20rpx 40rpx;
			padding-top: 0;
			box-sizing: border-box;
			border-radius: 30rpx;

			.reviewMain-content {
				padding-top: 20rpx;
				display: flex;
				align-items: center;
				font-size: 32rpx;

				.reviewMainImg {
					margin-right: 20rpx;
					width: 55rpx;
					height: 55rpx;

					image {
						width: 100%;
						height: 100%;
					}
				}

				.recharge {
					width: 85%;
					padding: 35rpx 0;
					border-bottom: 2rpx solid #ececec;
				}

				.recharge-end {
					border: 0;
				}

				.icon-xiangyoujiantou {
					margin-left: auto;
				}
			}
		}
	}
</style>